package com.crm.dao.impl;

import java.util.List;
import java.util.Map;

import com.crm.dao.SysUserDao;
import com.crm.util.JdbcUtil;

public class SysUserDaoImpl implements SysUserDao {

	@Override
	public List<Map> queryUser(String userName, String pwd) {
		String sql = "select * from sys_user where user_code=? and user_password=?";
		return JdbcUtil.executeQuery(sql, userName, pwd);
	}

	@Override
	public List<Map> queryUser(String userName) {
		String sql = "select * from sys_user where user_code=?";
		return JdbcUtil.executeQuery(sql, userName);
	}

}
